package _designPatterm.职责链模式;

public class ViceShcoolMasterApprover extends Apporver {

    public ViceShcoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice() > 10000 && purchaseRequest.getPrice() <= 30000) {
            System.out.println("求取编号id= " + purchaseRequest.getId() + "被" + this.name + "处理了");
        } else {
            apporver.processRequest(purchaseRequest);
        }
    }
}
